﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NanjingbeiRailwayStation.Data.ClickHouse.Models
{
    /// <summary>
    /// 报警信息
    /// </summary>
    public class AlarmInfo
    {
        /// <summary>
        /// 发生时间
        /// </summary>
        public DateTime eventTime { get; set; }
        /// <summary>
        /// 时间名称
        /// </summary>
        public string eventName { get; set; }

        //
        public string EventDescription
        {
            get
            {
                return Core.EventTypeTable.GetEventDescription(eventName);
            }

        }

        /// <summary>
        /// ime
        /// </summary>

        public string imei { get; set; }

        /// <summary>
        /// 电流
        /// </summary>
        public double VolA { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public double VolB { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public double VolC { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public double CurA { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public double CurB { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public double CurC { get; set; }
        /// <summary>
        /// 温度
        /// </summary>

        public double Ta { get; set; }
        /// <summary>
        /// 温度
        /// </summary>
        public double Tb { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public double Tc { get; set; }

        /// <summary>
        /// 温度
        /// </summary>
        public double Tn { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string DeviceMode { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string InstallationLocation { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public string Longitude { get; set; }
        /// <summary>
        /// 维度
        /// </summary>
        public string Latitude { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string InstallationPosition { get; set; }
            
        
    }
}
